package com.example.util.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SecurityLogin implements Serializable{

	private static final long serialVersionUID = 6892092323701663681L;

	private Long  id;   //user_s表主键id
	
	private String  partyName; //username;  //名称

	private String  loginPassword; //password;  //密码
	
	private String  loginName;//loginname; //登录名称
	
	private String  partyCode;//usercode; //用户编码
	
	private Long orgId;   //orgId //组织机构ID

	private String  orgName;//orgname; // 组织名称
	 
	private String  orgCode;//orgcode; // 组织编码
	 
	private String  fullName;//fullname;//组织全名
	 
	private String  fullCode;//fullcode; //组织全编码
	
	private Long parentOrgId;//orgparentid;//父组织
	
	private Long deparmentId;//部门ID
	
	private String deparmentName;//部门名称
	 
	private Long orgType;//orgtype;  //组织机构类型
	 
    private Long orgLevel;//orglevel; //层级
	 
	private String  oaAccount;//oaaccount; //oa账号
	
	private String email;
	
	private String phone;
	
	//private set<role> rid;   //角色编号
	  
	//private int accountnonexpired = 0;  //用户账号是否到期
	  
    private Long  lockFlag; //lockflag = 0;  //是否锁定
	  
	//private int credentialsnonexpired = 0;  //用户密码是否到期
	  
	private Long activeFlag; //activeflag = 0;  //用户是否可用
	
	private Date startDate;                   //账号生效日期
	private Date endDate;						//账号失效日期
	private Long deleteFlag;					//账号是否禁用

	private List<Role> lr = new ArrayList<Role>();

	public List<Role> getLr() {
		return lr;
	}

	public void setLr(List<Role> lr) {
		this.lr = lr;
	}

	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getPartyName() {
		return partyName;
	}
	public void setPartyName(String partyName) {
		this.partyName = partyName;
	}
	public String getLoginPassword() {
		return loginPassword;
	}
	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getPartyCode() {
		return partyCode;
	}
	public void setPartyCode(String partyCode) {
		this.partyCode = partyCode;
	}
	public Long getOrgId() {
		return orgId;
	}
	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}
	public String getOrgName() {
		return orgName;
	}
	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}
	public String getOrgCode() {
		return orgCode;
	}
	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}
	public String getFullName() {
		return fullName;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	public String getFullCode() {
		return fullCode;
	}
	public void setFullCode(String fullCode) {
		this.fullCode = fullCode;
	}
	public Long getParentOrgId() {
		return parentOrgId;
	}
	public void setParentOrgId(Long parentOrgId) {
		this.parentOrgId = parentOrgId;
	}
	public Long getDeparmentId() {
		return deparmentId;
	}
	public void setDeparmentId(Long deparmentId) {
		this.deparmentId = deparmentId;
	}
	public String getDeparmentName() {
		return deparmentName;
	}
	public void setDeparmentName(String deparmentName) {
		this.deparmentName = deparmentName;
	}
	public Long getOrgType() {
		return orgType;
	}
	public void setOrgType(Long orgType) {
		this.orgType = orgType;
	}
	public Long getOrgLevel() {
		return orgLevel;
	}
	public void setOrgLevel(Long orgLevel) {
		this.orgLevel = orgLevel;
	}
	public String getOaAccount() {
		return oaAccount;
	}
	public void setOaAccount(String oaAccount) {
		this.oaAccount = oaAccount;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Long getLockFlag() {
		return lockFlag;
	}
	public void setLockFlag(Long lockFlag) {
		this.lockFlag = lockFlag;
	}
	public Long getActiveFlag() {
		return activeFlag;
	}
	public void setActiveFlag(Long activeFlag) {
		this.activeFlag = activeFlag;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public Long getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Long deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "SecurityLogin{" +
				"id=" + id +
				", partyName='" + partyName + '\'' +
				", loginPassword='" + loginPassword + '\'' +
				", loginName='" + loginName + '\'' +
				", partyCode='" + partyCode + '\'' +
				", orgId=" + orgId +
				", orgName='" + orgName + '\'' +
				", orgCode='" + orgCode + '\'' +
				", fullName='" + fullName + '\'' +
				", fullCode='" + fullCode + '\'' +
				", parentOrgId=" + parentOrgId +
				", deparmentId=" + deparmentId +
				", deparmentName='" + deparmentName + '\'' +
				", orgType=" + orgType +
				", orgLevel=" + orgLevel +
				", oaAccount='" + oaAccount + '\'' +
				", email='" + email + '\'' +
				", phone='" + phone + '\'' +
				", lockFlag=" + lockFlag +
				", activeFlag=" + activeFlag +
				", startDate=" + startDate +
				", endDate=" + endDate +
				", deleteFlag=" + deleteFlag +
				", lr=" + lr +
				'}';
	}
}
